package com.learn.training.multithread.chapter4.demo2;

public class MyThread extends Thread {
    @Override
    public void run() {
        Thread hello = new HelloThread();
        hello.start(); //启动hello线程
        try {
            hello.join(); //等待hello线程结束
        }catch (InterruptedException e){
            System.out.println("mythread interrupted");
        }
//        hello.interrupt();
    }
}
